//
//  main.m
//  C06_作业
//
//  Created by dllo on 15/11/24.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MyPerson.h"

int main(int argc, const char * argv[]) {
    
    Student stu1 = {"ZhangSan", 1, {70, 80, 90}};
    Student stu2 = {"LiSi", 2, {80, 90, 100}};
    Student stu3 = {"WangWu", 3, {60, 50, 75}};
    Student stu4 = {"HeiLiu", 4, {75, 40, 80}};
    Student stu5 = {"PanLong", 5, {15, 40, 60}};
    
    Student arrStudent[5] = {stu1, stu2, stu3, stu4, stu5};
    
    
    
    /** 2.创建一个Point结构体,包含x, y两个变量. 并写以下函数
     * 函数1: 判断两个点是否在一条水平线上
     * 函数2: 判断两个点是否在一条垂直线上
     * 函数3: 判断两个点是否相等
     */
    
    PointXY poin1 = {3,4};
    PointXY poin2 = {3,5};
    shuiPing(poin1, poin2);
    chuizhi(poin1, poin2);
    xiangdeng(poin1, poin2);
    
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    return 0;
}
